<div id="sidebar">
<!--		<div id="mainsearch">
			<form id="mainsearchform" action="<?php bloginfo('url'); ?>/" method="get">
				<input class="input" type="text" value="输入文字..." onfocus="if (this.value == '输入文字...') {this.value = '';}" onblur="if (this.value == '') {this.value = '输入文字...';}" name="s" id="s" />
				<input class="submit" value="搜索" type="submit"/>
			</form>
		</div>-->
<div style="margin-bottom:10px;">
<!-- SiteSearch Google -->
<form id="mainsearchform" method="get" action="http://www.google.cn/custom" target="google_window">
<div>
<input type="hidden" name="domains" value="www.mathelite.cn" />
<label for="sbi" style="display: none">输入您的搜索字词</label>
<input class="googleinput" type="text" name="q" size="23px" maxlength="255" value="" id="sbi" />
<label for="sbb" style="display: none">提交搜索表单</label>
<input class="googlesubmit" type="submit" name="sa" value="搜索" id="sbb" />
</div>
<table>
<tr>
<td style='white-space: nowrap;'>
<input type="radio" name="sitesearch" value="" id="ss0"></input>
<label for="ss0" title="搜索网络">Google</label></td>
<td style='white-space: nowrap;'>
<input type="radio" name="sitesearch" value="www.mathelite.cn" checked="checked" id="ss1"></input>
<label for="ss1" title="搜索www.mathelite.cn">本站</label></td>
</tr>
</table>
<div>
<input type="hidden" name="client" value="pub-5959717033840019"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="1885594843"></input>
<input type="hidden" name="ie" value="UTF-8"></input>
<input type="hidden" name="oe" value="UTF-8"></input>
<input type="hidden" name="safe" value="active"></input>
<input type="hidden" name="flav" value="0000"></input>
<input type="hidden" name="sig" value="psrJ7G04VqH5SyBH"></input>
<input type="hidden" name="cof" value="GALT:#0066CC;GL:1;DIV:#999999;VLC:336633;AH:center;BGC:FFFFFF;LBGC:FF9900;ALC:0066CC;LC:0066CC;T:000000;GFNT:666666;GIMP:666666;FORID:1"></input>
<input type="hidden" name="hl" value="zh-CN"></input>
</div>
</form>
<!-- SiteSearch Google -->
</div>
			<div id="feedme">
				<a href="http://www.zhuaxia.com/add_channel.php?url=http://feed.mathelite.cn"><img src="<?php bloginfo('template_url'); ?>/images/icon_subshot02_zhuaxia.gif" alt="抓虾" style="margin-bottom: 3px;" /></a>
				&nbsp;&nbsp;<a href="http://fusion.google.com/add?feedurl=http://feed.mathelite.cn"><img src="<?php bloginfo('template_url'); ?>/images/icon_subshot02_google.gif" alt="google reader" style="margin-bottom: 3px;"/></a>
				<br />
				<a href="http://add.my.yahoo.com/rss?url=http://feed.mathelite.cn"><img src="<?php bloginfo('template_url'); ?>/images/icon_subshot02_yahoo.gif" alt="my yahoo" style="margin-bottom: 3px;" /></a>
				&nbsp;&nbsp;<a href="http://www.xianguo.com/subscribe.php?url=http://feed.mathelite.cn"><img src="<?php bloginfo('template_url'); ?>/images/icon_subshot02_xianguo.gif" alt="鲜果" style="margin-bottom: 3px;" /></a>
				<br />
				<a href="http://reader.youdao.com/b.do?keyfrom=feedsky&amp;url=http://feed.mathelite.cn"><img src="<?php bloginfo('template_url'); ?>/images/icon_subshot02_youdao.gif" alt="有道" style="margin-bottom: 3px;"  /></a>
				&nbsp;&nbsp;<a href="http://mail.qq.com/cgi-bin/feed?u=http://feed.mathelite.cn"><img src="<?php bloginfo('template_url'); ?>/images/icon_subshot02_qq.gif" alt="QQ邮箱" style="margin-bottom: 3px;" /></a>
				<br />
				<a href="http://feed.mathelite.cn"  title="更多订阅方式" target="_blank"><img src="<?php bloginfo('template_url'); ?>/images/icon_sub_c1s16.gif" alt="RSS Feed" style="margin-bottom: 3px;" /></a>
			</div>
		<ul>
		<?php if(!function_exists('dynamic_sidebar')||!dynamic_sidebar()): ?>
		<?php if ( is_single() ):?>
		<li>
			<h2>灌水先锋</h2>
			<?php
			  if (function_exists('get_comment_warrior') and function_exists('show_comment_warrior')) {
		      show_comment_warrior(get_comment_warrior());
		    }
		  ?>
		  </li>
		<?php endif;?>
		<?php
		if (is_single()) {
		$posts_widget_title = '最新文章';
		} else {
		$posts_widget_title = '随机文章';
		}
		?>
		<li class="widgetposts"><h2><?php echo $posts_widget_title; ?></h2>
			<?php
				if (is_home()) {
					// 原文，随机文章
					echo yunjie_get_random_posts();
				} else if (is_single()) {
					// 脚本，最新文章
					echo '<script type="text/javascript" src="'.yunjie_get_latest_posts_js().'"></script>';
				} else {
					// 脚本，随机文章
					echo '<script type="text/javascript" src="'.yunjie_get_random_posts_js().'"></script>';
				}
			?>
		</li>
		<li><h2>最新评论</h2>
			<?php
				if (is_home()) echo yunjie_get_recent_comments();
				else echo '<script type="text/javascript" src="'.yunjie_get_recent_comments_js().'"></script>';
			?>
		</li>
		<li>
			<h2>月度存档</h2>
			<ul>
			<?php wp_get_archives('type=monthly&show_post_count=1'); ?>
			</ul>
		</li>
		<?php if ( is_home() || is_page() ) { ?>
			<?php wp_list_bookmarks('orderby=rand&title_before=<h2>&title_after=</h2>&between=<br/>&show_description=0'); ?>
			<li class="widget_tag_cloud">
				<h2>标签云</h2>
				<?php wp_tag_cloud('smallest=10&largest=14&number=30&unit=px&format=flat&orderby=name');?>
			</li>
		<?php } ?>
		<li><h2><?php _e('Meta', 'yunjietheme'); ?></h2>
			<ul>
				<?php wp_register(); ?>
				<li><?php wp_loginout(); ?></li>
				<?php wp_meta(); ?>
			</ul>
		</li>
		<?php endif; ?>
<li style="display:none"><h2>五湖四海</h2>
<ul>
<li>
<div id="referer"><a href="http://www.clicki.cn/">Clicki</a></div><script type="text/javascript" src="http://www.clicki.cn/refer/feeler.php?siteid=25523"></script>
</li>
</ul>
</li>
<li class="widgetad">
</li>
		</ul>
	</div><!--sidebar ended-->
</div><!--main ended-->
<div class="fixed"></div> 